package jfox.platform.datadict.dao;

import java.util.List;

import jfox.platform.datadict.entity.DictItem;
import jfox.platform.infrastructure.DataAccessObject;

/**
 * @author <a href="mailto:yang_y@sysnet.com.cn">Young Yang</a>
 */
public interface DictItemDAO extends DataAccessObject {

    DictItem getDictItemById(long id);

    List<DictItem> getDictItemsByCategoryCode(String categoryCode);

    List<DictItem> getAllDictItem();
    
    void insertDictItem(DictItem dictItem);
    
    int deleteDictItem(long id);
    
    int updateDictItem(DictItem dictItem);    

}